<%@ page language="java" contentType="text/html" import="com.dao.*,com.beans.*,java.util.*" pageEncoding="utf-8"%>
<%String path = request.getContextPath();String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()+ path + "/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"  %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="css/edittable.css"></link>
<link rel="stylesheet" type="text/css" href="css/validate.css"></link>
<script type="text/javascript" src="js/jquery-1.8.0.js"></script>

</head>

<body>

	<%
		
	%>
	
	<div class="div_title">
		<div class="div_titlename">
			<img src="images/san_jiao.gif"><span>商品管理 | 查看商品</span>
		</div>
	</div>

		<table class="edit_table">
			<tr>
				<td class="td_info">
					商品名称:
				</td>
				<td class="td_input_short">
					<input type="text" class="txtbox"id="goodsName" readonly="readonly" name="goodsName" value="${goods.goodsName}"/>
				</td>
				<td>
					<label></label>
				</td>
			</tr>
			
			<tr>
				<td class="td_info">
					所属分类:
				</td>
				<td style="width:230px;">
					
					<span>一级分类：${bigCateName} &nbsp;二级分类： ${smallCateName}</span>
					
				</td>
				
				<td>
					<label></label>
				</td>
			</tr>
			
			<tr>
				<td class="td_info">
					计量单位:
				</td>
				<td class="td_input_short">
					<input type="text" class="txtbox"id="unit" readonly="readonly" name="unit" value="${goods.unit}"/>
				</td>
				<td>
					<label></label>
				</td>
			</tr>
			
			<tr>
				<td class="td_info">
					商品价格:
				</td>
				<td class="td_input_short">
					<input type="text" class="txtbox" id="price" readonly="readonly" name="price" value="${goods.price}"/>
				</td>
				<td>
					<label></label>
				</td>
			</tr>
			
			<tr>
				<td class="td_info">
					生产厂商:
				</td>
				<td class="td_input_short">
					<input type="text" class="txtbox" id="producter" readonly="readonly" name="producter" value="${goods.producter}"/>
				</td>
				
				<td>
					<label></label>
				</td>
			</tr>
			
			
			<tr>
				<td class="td_info">
					商品图片:
				</td>
				<td>
					<img height="80px" width="80px" id="pictureData_show" alt="未选择图片" src="GoodsServlet.do?flag=showPicture&id=${goods.id}"/>
				</td>
				<td>
					<label></label>
				</td>
			</tr>
			
			<tr>
				<td class="td_info">
					备注信息:
				</td>
				<td>
					<textarea rows="4" cols="27" name="des" readonly="readonly" style="resize:none" class="txtarea" >${goods.des}</textarea>
				</td>
				<td>
					<label></label>
				</td>
			</tr>
		</table>
	
</body>
</html>
